import { createRouter,createWebHistory } from "vue-router"
import EmployeeView from "@/views/employee/index.vue"
import UserView from "@/views/user/index.vue"
import LoginView from "@/views/login/index.vue"
import LayoutView from "@/views/layoutView/index.vue"
import CourseView from "@/views/course/index.vue"
import EmergentView from "@/views/emerge/index.vue"
import IndexsView from "@/views/indexs/index.vue"
import VisualTool from "@/views/VisualTool/index.vue"


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: '',
      component: LayoutView,
      children:[
        {path: '/employee',name: 'employee',component: EmployeeView},
        {path: '/user',name: 'user',component: UserView},
        {path: '/course',name: 'course',component: CourseView},
        {path: '/emerge',name: 'emerge',component: EmergentView},
        {path: '/indexs',name: 'indexs',component: IndexsView},
        {path: '/visualTool',name: 'visualTool',component: VisualTool},
      ]
    },
    {path: '/login',name: 'login',component: LoginView}
  ]
})


export default router